Skip to content

Instantly share code, notes, and snippets.

@moiph
Created July 14, 2019 00:37
Show Gist options
  • Save moiph/ddc2f2fafe2658d5983b26e69ee1b9b8 to your computer and use it in GitHub Desktop.
Save moiph/ddc2f2fafe2658d5983b26e69ee1b9b8 to your computer and use it in GitHub Desktop.
It's a Discord.net gist...from Enspiron!
[ Command ( "Warn" )]
0 references
-
public async Task warn (SocketGuildUser User, [Remainder]string Message = "")
{
FileHandler fileHandler = new FileHandler();
fileHandler.AddToList(Context.Guild.Id + "/" + User.Id + ".txt", Message);
await Context.Message.Channel.SendMessageAsync( "warn");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment