Comments (7)
to confirm, a fork of Eris' API for Powercord is in the works, and it will be undetectable and API-compliant
from powercord.
for notifications (not all messages) this can be used (thanks aeth)
const { getModule } = require('powercord/webpack');
const mdl = getModule(['makeTextChatNotification']);
mdl.makeTextChatNotification = (_makeTextChatNotification => (...args) => {
console.log('gord code goes here');
return _makeTextChatNotification(...args);
})(mdl.makeTextChatNotification);
from powercord.
For Gateway messages you can just get them by doing powercord.on('webSocketMessage:gateway.discord.gg', console.log)
tho it's raw stuff so it needs to be decoded, and there is probably a way to inject somewhere to get them already decoded (or you'll have to decode them by yourself). I think aeth said something about a """""bot client"""" that would just be decoding that and re-mapping a client lib like Eris to use Discord internal functions
For other events it's mostly patching the right method, and you're good (see comment above)
from powercord.
So the issue 69 will be closed when the fork of Eris is live I guess
from powercord.
@Bowser65 haha sex number
from powercord.
Since it is possible to listen for gateway events through
require('powercord/webpack').getModule([ 'dispatch', '_isDispatching' ], false).subscribe('EVENT_NAME', handler)
, can we close this issue?
from powercord.
I'll consider we can safely close this, as you can easily subscribe to events within plugins through Discord's internals and if the point is to have a plugin forwarding events to an external source this'd belong to the plugins suggestion repo
from powercord.
Related Issues (20)
- [Bug] Discord restarts whenever I send a message HOT 3
- Hyperlink in Eradicate Clyde setting doesn't work HOT 1
- The ui in the section settings is little bit bugged (see screenshot) HOT 3
- Allow stable/PTB injection even though it is not supported HOT 3
- Selects first path if multiple paths present Linux
- [Feature Request] Volume control for Spotify Modal HOT 1
- pc-commands crash
- ".echo Some text" and view Powercord profile result a crash
- Add Discord Development support HOT 1
- short description of bug HOT 3
- Opening LMGTFY settings from "Plugins" menu results a reload HOT 2
- Application path assumption HOT 2
- Autocomplete instruction causes something to be inserted into text box
- [Feature Request] Custom plugin download guide HOT 2
- Folder Structure HOT 6
- Bug & Feature Request for non-canary notice banner HOT 1
- Right click on user crashes Discord HOT 5
- Powercord crashes after I right click on a user HOT 2
- [Plugin Request] Replace Markdown codeblocks with embedded Markdown page HOT 1
- Fail to inject due to the latest update of discord canary on Sept 26th,2022 HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powercord.