Browse Source

Change prefix sample to match referenced example

Co-Authored-By: Still34 <341464@gmail.com>
pull/1257/head
Chris Johnston GitHub 6 years ago
parent
commit
ee1807f193
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      samples/02_commands_framework/Services/CommandHandlingService.cs

+ 1
- 1
samples/02_commands_framework/Services/CommandHandlingService.cs View File

@@ -42,7 +42,7 @@ namespace _02_commands_framework.Services
// This value holds the offset where the prefix ends
var argPos = 0;
// Perform prefix check. You may want to replace this with
// (!message.HasCharPrefix(_prefix, ref argPos))
// (!message.HasCharPrefix('!', ref argPos))
// for a more traditional command format like !help.
if (!message.HasMentionPrefix(_discord.CurrentUser, ref argPos)) return;



Loading…
Cancel
Save