mirror of
https://github.com/evennia/evennia.git
synced 2026-03-27 18:26:32 +01:00
Finish the assign role system through the bot.
This commit is contained in:
parent
61083ed9b5
commit
58bfd143d2
1 changed files with 9 additions and 1 deletions
|
|
@ -650,8 +650,16 @@ class DiscordBot(Bot):
|
|||
super().msg(nickname=(new_nickname, guild_id, user_id))
|
||||
|
||||
def assign_role(self, role_id, guild_id, user_id, **kwargs):
|
||||
"""
|
||||
Assigns a user the role on the given guild the bot is in.
|
||||
|
||||
pass
|
||||
Args:
|
||||
role_id (int) - The Discord role's ID.
|
||||
guild_id (int) - The guild the role will be assigned in.
|
||||
user_id (int) - The user the given role will be assigned to.
|
||||
"""
|
||||
|
||||
super().msg(role=(role_id, guild_id, user_id))
|
||||
|
||||
def direct_msg(self, message, sender, **kwargs):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue