Allow bots to be added to servers with server templates #3263
Replies: 5 comments
-
maybe the state parameter is a bad idea, but maybe an optional argument for the guild_join event, with the guild id the template was made from? |
Beta Was this translation helpful? Give feedback.
-
That would also work for that |
Beta Was this translation helpful? Give feedback.
-
It is fine until the template has a malicious bot hiding within a list of like 40 bots you do not realise as you gloss over it. |
Beta Was this translation helpful? Give feedback.
-
I'd imagine 40 bots is probably too many to include automatically at once, it'll probably be limited. |
Beta Was this translation helpful? Give feedback.
-
Server templates should be able to include bots that are in the origin server.
It would be nice if some form of 'state' parameter could be included with the template which bots could use to configure the new server, such as a default prefix.
If multiple bots can be included per server, this state should be able to be settable per bot, so multiple bots can read different states for them automatically.
Bots should request/inherit their permissions from their managed roles from the origin server on the new one.
EDIT:
Alternatively as suggested below, there could be an optional 'template id' parameter in the GUILD_CREATE event, which can then be used to look up the previous settings from some database.
This would be supplemented by an event when a template is created, or updated in the origin server. If the bot is destined to be a member of servers generated by that template, it should receive these events regardless of permissions to view templates otherwise.
Beta Was this translation helpful? Give feedback.
All reactions