Made commands guild only
This commit is contained in:
		| @@ -36,6 +36,7 @@ class RestartCommand(DiscordCommandABC): | ||||
|         self._logger.trace(__name__, f'Loaded command service: {type(self).__name__}') | ||||
|  | ||||
|     @commands.command() | ||||
|     @commands.guild_only() | ||||
|     async def restart(self, ctx: Context): | ||||
|         self._logger.debug(__name__, f'Received command restart {ctx}') | ||||
|         self._client_utils.received_command(ctx.guild.id) | ||||
|   | ||||
| @@ -36,6 +36,7 @@ class ShutdownCommand(DiscordCommandABC): | ||||
|         self._logger.trace(__name__, f'Loaded command service: {type(self).__name__}') | ||||
|  | ||||
|     @commands.command() | ||||
|     @commands.guild_only() | ||||
|     async def shutdown(self, ctx: Context): | ||||
|         self._logger.debug(__name__, f'Received command shutdown {ctx}') | ||||
|         self._client_utils.received_command(ctx.guild.id) | ||||
|   | ||||
| @@ -31,6 +31,7 @@ class HelpCommand(DiscordCommandABC): | ||||
|         self._logger.trace(__name__, f'Loaded command service: {type(self).__name__}') | ||||
|  | ||||
|     @commands.command() | ||||
|     @commands.guild_only() | ||||
|     async def help(self, ctx: Context, persistent_flag: str = None): | ||||
|         self._logger.debug(__name__, f'Received command help {ctx}:{persistent_flag}') | ||||
|         self._client_utils.received_command(ctx.guild.id) | ||||
|   | ||||
| @@ -37,6 +37,7 @@ class InfoCommand(DiscordCommandABC): | ||||
|         self._logger.trace(__name__, f'Loaded command service: {type(self).__name__}') | ||||
|  | ||||
|     @commands.command() | ||||
|     @commands.guild_only() | ||||
|     async def info(self, ctx: Context, *, wait: int = None): | ||||
|         self._logger.debug(__name__, f'Received command info {ctx},{wait}') | ||||
|         self._client_utils.received_command(ctx.guild.id) | ||||
|   | ||||
| @@ -30,6 +30,7 @@ class PingCommand(DiscordCommandABC): | ||||
|         self._logger.trace(__name__, f'Loaded command service: {type(self).__name__}') | ||||
|  | ||||
|     @commands.command() | ||||
|     @commands.guild_only() | ||||
|     async def ping(self, ctx: Context): | ||||
|         self._logger.debug(__name__, f'Received command ping {ctx}') | ||||
|         self._client_utils.received_command(ctx.guild.id) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user