Update _on_roles
This commit is contained in:
@@ -526,7 +526,7 @@ class FlanaBot(MultiBot, ABC):
|
||||
await self.delete_message(message)
|
||||
await self.send(
|
||||
f'<b>Roles de {message.author.name}:</b>',
|
||||
self._distribute_buttons(await self._role_state_options(message, user_role_names)),
|
||||
self._distribute_buttons(options),
|
||||
message,
|
||||
buttons_key=ButtonsGroup.ROLES,
|
||||
contents={'user_id': message.author.id}
|
||||
|
||||
@@ -5,6 +5,7 @@ import datetime
|
||||
import math
|
||||
import os
|
||||
import random
|
||||
from collections import defaultdict
|
||||
from typing import Sequence
|
||||
|
||||
import discord
|
||||
@@ -17,10 +18,11 @@ import constants
|
||||
from flanabot.bots.flana_bot import FlanaBot
|
||||
from flanabot.models import Chat, Message, Punishment
|
||||
|
||||
CHANGEABLE_ROLES = {
|
||||
# noinspection PyTypeChecker
|
||||
CHANGEABLE_ROLES = defaultdict(dict, {
|
||||
360868977754505217: [881238165476741161, 991454395663401072, 1033098591725699222],
|
||||
862823584670285835: [976660580939202610, 984269640752590868],
|
||||
}
|
||||
862823584670285835: [976660580939202610, 984269640752590868]
|
||||
})
|
||||
HEAT_NAMES = [
|
||||
'Canal Congelado',
|
||||
'Canal Fresquito',
|
||||
|
||||
Reference in New Issue
Block a user