You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

require_context.cs 314 B

12345678910
  1. public class InfoModule : ModuleBase
  2. {
  3. // Constrain this command to Guilds
  4. [RequireContext(ContextType.Guild)]
  5. public async Task Whois(IGuildUser user) { }
  6. // Constrain this command to either Guilds or DMs
  7. [RequireContext(ContextType.Guild | ContextType.DM)]
  8. public async Task Info() { }
  9. }