Add the ability to PATCH discord nicknames and roles.

This commit is contained in:
holl0wstar 2023-09-25 00:32:06 -03:00
parent 1add10bcb0
commit 37ecac009d
3 changed files with 64 additions and 2 deletions

View file

@ -637,6 +637,9 @@ class DiscordBot(Bot):
# send outputfunc channel(msg, discord channel)
super().msg(channel=(strip_ansi(message.strip()), dc_chan))
def change_nickname(self, new_nickname, guild_id, user_id, **kwargs):
super().msg(nickname=(new_nickname, guild_id, user_id))
def direct_msg(self, message, sender, **kwargs):
"""
Called when the Discord bot receives a direct message on Discord.