DiscordAPI

Moved

Total Downloads: 1,971 - First Release: Sep 21, 2016 - Last Update: Jun 8, 2017

5/5, 3 likes
  1. Issues solved with the visual guide from
    Code:
    http://oxidemod.org/plugins/discordreport.2323/
    Which points out I need a .exe program running on a server to put the bot online and clarifys that the &permissions.

    Here is the original post I made before finding the discord report post.

    from Discord - Free voice and text chat for gamers

    "A URL can be generated that redirects authenticated users to the add-bot flow, by using the following format (this utilizes the OAuth2 authentication flow, without a callback URL):

    Code:
    https://discordapp.com/api/oauth2/authorize?client_id=157730590492196864&scope=bot&permissions=0
    client_id is your bot application's ID and permissions is an integer following the permissionsformat."

    Did anyone figure out which permission we need for this App?

    The Bot comes up in the Channel with the above URL, with a custom "Role". Which I approve when i open the link.
    for permissions I ended up using 66321471 from the example

    Code:
    https://discordapp.com/developers/docs/topics/permissions#bitwise-permission-flags
    I can get the Slack one to work, but the Discord is giving me headaches.

    It appears people seem to get it working with MusicBot. However I cannot find this app on the Discord Store (plenty that are Music Bots however) I had a go with Lewd Bot, but not sure what I am meant to be doing.

    Any feedback, suggestions welcome.

    Hook.

    p.s. Perhaps Tanki can let me know what his join solution was? I check the text document for linefeeds etc but appears ok. (using Windows Notepad)
     
    Last edited by a moderator: Apr 9, 2017
  2. This plugin is pretty old. Someone should add proper headers to it:
    Code:
    The following plugins didnt have well constructed headers and were not updated, update them manually:
    -> Discord.cs
    
     
  3. Wulf

    Wulf Community Admin

    Where are you seeing that? Sounds like whatever tool you are using failed to download the plugin from the site.
     
  4. I'm using the Python plugin update tool for Linux. It works fine with over two dozen other plugins I'm using, but I've come across a few plugins that hadn't been updated in a long time that gave the same error.
     
  5. Wulf

    Wulf Community Admin

    Sounds like it failed to download them, as the plugin does not need to be updated.
     
  6. That's true, it doesn't actually need to update it, so I ignored the error. But should the plugin ever get an update, the tool won't be able to download it. Not a terribly huge issue, but would be good for the header to get an update.
     
  7. Wulf

    Wulf Community Admin

    I think your tool is a bit misleading, as the ResourceId it likely wants is not a requirement, but likely what it is looking for. You can simply add that by adding , ResourceId = 2149 inside the info tags.
     
  8. Wulf

    Wulf Community Admin

    Wulf updated Discord with a new update entry:

    0.2.1

     
  9. That did the trick. Thanks!
     
  10. So I have set-up the bot and added it to my server but it's sat there offline and I get this in console if someone raids: (22:15:38) | [Discord] Discord Api responded with 400: {"code": 40001, "message": "Unauthorized"}

    I'm using raid tracker and that uses this to advise via my Discord server in a specific channel I set-up for rust admin stuff.

    Now I have been reading through that music player and that is saying i need to install python and all kinds of weird stuff just to get this to work... I'm not down with that and would rather use a webhook if at all possible?
     
  11. I am getting the 401 unauthorized message for discord
     
  12. Looking to configure this plugin so that when someone is banned/muted in-game (Rust) it is announced through Discord also. Was hoping you could help me out.
     
  13. So how do I actually get this to work??? I have created a bot, got it to join the channel, but it gives me "unauthorised" etc.. Reading the comments in here people are saying use a Music bot? Where do I get a music bot from? I have the normal one that I made, And with a music bot where do I get the Bot ID? I used another plugin that posted bans etc to discord and it wasn't anywhere near as much trouble as this.. This is just doing my head in big time.. Does anyone have a tutorial on how to get this working that actually works??
     
  14. i don't know how to setup plz somebody tell it to me
     
  15. I too am getting this. Any ideas?
     
  16. getting this error now was working a few days ago

    [Discord] Discord Api responded with 403: {"code": 50001, "message": "Missing Access"}
     
  17. That's a Discord API error. Most likely the bot is missing some permissions on the server. Has it been kicked or anything?
     
    Last edited by a moderator: Aug 9, 2018
  18. Code:
    [Discord] Discord Api responded with 0: Aborted.
    I've had my bot working for ages, not its getting this error.