WIP: libbot 4.0.0 adoption
This commit is contained in:
@@ -6,8 +6,7 @@ from discord import utils as ds_utils
|
||||
from discord.abc import GuildChannel
|
||||
from discord.commands import SlashCommandGroup
|
||||
from discord.ext import commands
|
||||
from libbot import config_get
|
||||
from libbot.sync import config_get as sync_config_get
|
||||
from libbot.utils import config_get
|
||||
|
||||
from classes.holo_bot import HoloBot
|
||||
from classes.holo_user import HoloUser
|
||||
@@ -35,7 +34,7 @@ class CustomChannels(commands.Cog):
|
||||
@custom_channel_group.command(
|
||||
name="get",
|
||||
description="Отримати персональний текстовий канал",
|
||||
guild_ids=[sync_config_get("guild")],
|
||||
guild_ids=[config_get("guild")],
|
||||
)
|
||||
@option("name", description="Назва каналу")
|
||||
@option("reactions", description="Дозволити реакції")
|
||||
@@ -122,7 +121,7 @@ class CustomChannels(commands.Cog):
|
||||
@custom_channel_group.command(
|
||||
name="edit",
|
||||
description="Змінити параметри особистого каналу",
|
||||
guild_ids=[sync_config_get("guild")],
|
||||
guild_ids=[config_get("guild")],
|
||||
)
|
||||
@option("name", description="Назва каналу")
|
||||
@option("reactions", description="Дозволити реакції")
|
||||
@@ -167,7 +166,7 @@ class CustomChannels(commands.Cog):
|
||||
@custom_channel_group.command(
|
||||
name="remove",
|
||||
description="Відібрати канал, знищуючи його, та частково повернути кошти",
|
||||
guild_ids=[sync_config_get("guild")],
|
||||
guild_ids=[config_get("guild")],
|
||||
)
|
||||
@option("confirm", description="Підтвердження операції")
|
||||
async def custom_channel_remove_cmd(
|
||||
|
Reference in New Issue
Block a user