async def edit(self, message: discord.Message): message.__class__ = VariablesEditMessage command = message.command_word if command is None: return if self._add.command_is(command): await self._add.run(message) if self._del.command_is(command): await self._del.run(message) if self._set.command_is(command): await self._set.run(message) if self._get.command_is(command): await self._get.run(message)
async def receive(self, message:discord.Message): message.__class__ = MacroCommandMessage head = message.head_word if head != MacroCommandReceiver.HEAD: return command = message.command_word if command is None: return if self._add.command_is(command): await self._add.run(message) return if self._del.command_is(command): await self._del.run(message) return if self._edit.command_is(command): await self._edit.run(message) return