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 344 B

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