Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

discord bot status code c#

//in commands.cs file

public class Help : ModuleBase<SocketCommandContext>
        {
            [Command("test")]
            public async Task TestAsync()
            {
                await Context.Client.SetGameAsync("Game");

                await Task.CompletedTask;
            }
        }
}
 
PREVIOUS NEXT
Tagged: #discord #bot #status #code
ADD COMMENT
Topic
Name
7+5 =