mirror of
https://github.com/evennia/evennia.git
synced 2026-03-23 16:26:30 +01:00
Documentation.
This commit is contained in:
parent
a9b1417806
commit
911323b721
1 changed files with 9 additions and 0 deletions
|
|
@ -638,6 +638,15 @@ class DiscordBot(Bot):
|
|||
super().msg(channel=(strip_ansi(message.strip()), dc_chan))
|
||||
|
||||
def change_nickname(self, new_nickname, guild_id, user_id, **kwargs):
|
||||
"""
|
||||
Changes a given user's nickname on the given guild the bot is in.
|
||||
|
||||
Args:
|
||||
new_nickname (str) - The user's new nickname.
|
||||
guild_id (int) - The guild the nickname will be changed in.
|
||||
user_id (int) - The Discord ID of the user who's nickname will be changed.
|
||||
|
||||
"""
|
||||
super().msg(nickname=(new_nickname, guild_id, user_id))
|
||||
|
||||
def direct_msg(self, message, sender, **kwargs):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue