Coder Social home page Coder Social logo

Comments (7)

demodude4u avatar demodude4u commented on June 16, 2024

I have seen some servers configured to disable slash commands. Double-check that this isn't the case with this issue. Sometimes people will disable slash commands because they do not want admin commands from another bot to appear. If this does not resolve the issue, can you verify that you can see the commands in a brand new server?

from factorio-fbsr.

brodkin avatar brodkin commented on June 16, 2024

Slash commands are definitely enabled. You can actually see ProBot’s in the screenshot above. I tried spinning up a new server and adding the bot there but same result unfortunately.

from factorio-fbsr.

Bilka2 avatar Bilka2 commented on June 16, 2024

Your screenshot is missing the "command permissions" section that is shown here: https://discord.com/blog/slash-commands-permissions-discord-apps-bots. Maybe it's somewhere else due to discord canary? Try to find that section and see if the commands are allowed there.

from factorio-fbsr.

brodkin avatar brodkin commented on June 16, 2024

Yeah, I was including that screenshot to demonstrate that the commands are missing. ProBot has them listed, even in Canary.

I am also a Discord dev so I started looking over the docs and it looks like the invite link needs to include the "applications.commands" scope in the dev portal's OAuth2 URL Generator for command permission to be granted. Perhaps the two invite links I tried are missing that?

from factorio-fbsr.

Bilka2 avatar Bilka2 commented on June 16, 2024

Maybe. Try https://discord.com/oauth2/authorize?client_id=310607046020169729&scope=bot+applications.commands&permissions=379968, it's the invite from the /info command. It has the applications.commands scope and works on my server.

from factorio-fbsr.

brodkin avatar brodkin commented on June 16, 2024

That's it! I previously used the invite links from top.gg and Factorio Cheat Sheet, but neither one worked. This one was added successfully and works as expected.

I also tried using the below URL to just authorize commands, which added successfully, but errored on use. In theory, it's all that would be needed for a bot that only responds to commands though. Perhaps an enhancement?
https://discord.com/api/oauth2/authorize?client_id=310607046020169729&scope=applications.commands

In any event, I appreciate your help! It's unfortunate that the scopes/permissions are in the URL itself since you don't have control of everywhere the invite link may exist.

Perhaps that is why this new system is starting in August...
https://support-dev.discord.com/hc/en-us/articles/4404772028055

from factorio-fbsr.

Bilka2 avatar Bilka2 commented on June 16, 2024

I'm glad that was the issue and not something more complicated! I've made a PR to get the link on the cheatsheet fixed.

from factorio-fbsr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.