getGuildCommands method

List<AbstractCommand<CommandInteraction>> getGuildCommands(
  1. Guild guild
)

Implementation

List<AbstractCommand> getGuildCommands (Guild guild) {
  return List<AbstractCommand>.from(_commands.values.where((element) => element.scope?.mode == CommandScope.guild.mode || element.scope?.mode == guild.id));
}