[p]licenseinfo and slash commands #5460

Closed
opened 2021-12-05 11:05:42 +01:00 by laggron42 · 4 comments
laggron42 commented 2021-12-05 11:05:42 +01:00 (Migrated from github.com)

The deadline is coming, Discord will soon remove message content for most bots, forcing us to migrate to slash commands.

It has been told countless times that Red does not support public bots and it is fully up to us if we want to host a large public bot, which most of us already understood by using a custom fork.

However, there is a problem with that: the [p]licenseinfo command. It has been made for traditional commands and cannot be modified. So, when slash commands kick in, is Discord responsible for blocking access to this command?

Not supporting slash commands is perfectly fine, but in the current state of the bot, it is outright illegal to have a slash-only bot. The command is inaccessible and requires editing to work.


This is not a specific feature request, I'm asking for clarifications as to how we should implement this command on slash-commands only bots. I see multiple ways of doing this:

  • Allow and require the bot/fork owner to implement his slash version of licenseinfo, not touching the original text
  • Provide a slash-command compatible version of licenseinfo. Red doesn't manage interactions by default and people use plenty of different libs, so that would be kinda difficult to implement
  • Respond to the bot mention, aka @Redbot licenseinfo will always respond, even if the bot mention isn't a prefix
The deadline is coming, Discord will soon remove message content for most bots, forcing us to migrate to slash commands. It has been told countless times that Red does not support public bots and it is fully up to us if we want to host a large public bot, which most of us already understood by using a custom fork. However, there is a problem with that: the `[p]licenseinfo` command. It has been made for traditional commands and cannot be modified. So, when slash commands kick in, is Discord responsible for blocking access to this command? Not supporting slash commands is perfectly fine, but in the current state of the bot, it is outright illegal to have a slash-only bot. The command is inaccessible and requires editing to work. ---- This is not a specific feature request, I'm asking for clarifications as to how we should implement this command on slash-commands only bots. I see multiple ways of doing this: - Allow and require the bot/fork owner to implement his slash version of licenseinfo, not touching the original text - Provide a slash-command compatible version of licenseinfo. Red doesn't manage interactions by default and people use plenty of different libs, so that would be kinda difficult to implement - Respond to the bot mention, aka `@Redbot licenseinfo` will always respond, even if the bot mention isn't a prefix
Jacob-1999 commented 2021-12-07 05:42:38 +01:00 (Migrated from github.com)

If you require the Message Content Intent to be enabled like the other intents before having the ability to install Red, technically nothing should change and Red should be able to read message content like normal. It should be noted that this has been mentioned in the Message Content Policy.
img
If there's something bigger that's at stake and I'm just not understanding then apologies for being ignorant. How I'm thinking about this is once you require the message intent to be enabled, you shouldn't have to do anything slash command related.

If you require the Message Content Intent to be enabled like the other intents before having the ability to install Red, technically nothing should change and Red should be able to read message content like normal. It should be noted that this has been mentioned in the [Message Content Policy](https://support.discord.com/hc/en-us/articles/4410940809111#h_01FJ9G3JV1H0HN25C4V7X3RHD4). ![img](https://i.imgur.com/p5LbiD4.png) _If there's something bigger that's at stake and I'm just not understanding then apologies for being ignorant. How I'm thinking about this is once you require the message intent to be enabled, you shouldn't have to do anything slash command related._
Flame442 commented 2021-12-07 06:39:29 +01:00 (Migrated from github.com)

If you require the Message Content Intent to be enabled like the other intents before having the ability to install Red

There is no way to prevent install based on whether intents are enabled, but we can (and do) prevent the bot from launching without intents by default. However, a non-zero number of users have modified versions of the bot to bypass this restriction in various ways in order to use red as a public bot. Obviously this is not supported, however it is permissible by the license, assuming they maintain the licenseinfo command. This issue is pointing out the fact that it is not possible to keep the licenseinfo command usable on a slash-only bot (as required by the current wording of the license), so these users would be unable to legally host modified versions of red purely because they cannot maintain the specific implementation of the licenseinfo command that is currently required. They are requesting that an alternative option be provided, otherwise they will be unable to use red how they currently are in a legal way.

> If you require the Message Content Intent to be enabled like the other intents before having the ability to install Red There is no way to prevent install based on whether intents are enabled, but we can (and do) prevent the bot from launching without intents by default. However, a non-zero number of users have modified versions of the bot to bypass this restriction in various ways in order to use red as a public bot. Obviously this is not supported, however it is permissible by the license, *assuming they maintain the licenseinfo command*. This issue is pointing out the fact that it is not possible to keep the licenseinfo command usable on a slash-only bot (as required by the current wording of the license), so these users would be unable to legally host modified versions of red purely because they cannot maintain the specific implementation of the licenseinfo command that is currently required. They are requesting that an alternative option be provided, otherwise they will be unable to use red how they currently are in a legal way.
nfitzen commented 2021-12-20 05:29:51 +01:00 (Migrated from github.com)

@Flame442 Red is only licensed under the GPL, not the AGPL, so there is no requirement for a licenseinfo command on modified bots, also because the output of licenseinfo doesn't appear to qualify under the Appropriate Legal Notices definition.

Edit 2: And the only reason a licenseinfo command might be necessary is if the fork is being sent to someone else.

Is there something I'm missing? (Also, not a lawyer, so yeah.)

Edit 3: Ah, never mind, it might be required. It doesn't appear to be required, though, unless the modified bot is conveyed.

@Flame442 ~~Red is only licensed under the GPL, not the AGPL, so there is no requirement for a `licenseinfo` command on modified bots, also because the output of `licenseinfo` doesn't appear to qualify under the Appropriate Legal Notices definition.~~ ~~Edit 2: And the only reason a `licenseinfo` command might be necessary is if the fork is being sent to someone else.~~ ~~Is there something I'm missing? (Also, not a lawyer, so yeah.)~~ Edit 3: Ah, never mind, it might be required. It doesn't appear to be required, though, unless the modified bot is conveyed.
Flame442 commented 2021-12-20 08:52:06 +01:00 (Migrated from github.com)

While I won't comment on whether other methods of displaying credit/copyright information would be considered valid under the license (IANAL, contact a lawyer for legal advice), I will say that it is what we generally expect from any instance or fork of red -- including a public instance. This issue exists not to argue about semantics about the license, it is to keep us aware of how the upcoming changes to the discord API will affect that specific command.

While I won't comment on whether other methods of displaying credit/copyright information would be considered valid under the license (IANAL, contact a lawyer for legal advice), I will say that it is what we generally expect from any instance or fork of red -- including a public instance. This issue exists not to argue about semantics about the license, it is to keep us aware of how the upcoming changes to the discord API will affect that specific command.
Sign in to join this conversation.
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot#5460
No description provided.