|
|
|
@ -1022,10 +1022,8 @@ class Member(discord.abc.Messageable, _UserTag): |
|
|
|
|
|
|
|
if not me and self_payload: |
|
|
|
only_fields = {'avatar', 'banner', 'bio', 'display_name_font', 'display_name_effect', 'display_name_colors'} |
|
|
|
current_fields = utils._human_join(list(only_fields.intersection(set(self_payload.keys()))), final="and") |
|
|
|
raise ValueError( |
|
|
|
f'Editing {current_fields} can only happen when editing the bot\'s own member.' |
|
|
|
) |
|
|
|
current_fields = utils._human_join(list(only_fields.intersection(set(self_payload.keys()))), final='and') |
|
|
|
raise ValueError(f"Editing {current_fields} can only happen when editing the bot's own member.") |
|
|
|
|
|
|
|
if deafen is not MISSING: |
|
|
|
payload['deaf'] = deafen |
|
|
|
|