Need some C++ converted into [login to view URL]
8 commands and all are pretty short
[Command("default")]
[Summary("Sets default roles to be used for raids when roles not specified.")]
[Command("raidlist")]
[Alias("list")]
[Summary("Lists raids availble for signups.")]
[Command("status")]
[Summary("Lists players and roles signed up for specified raid.")]
[Command("status")]
[Summary("Lists players and roles signed up for specified raid.")]
[Command("withdraw")]
[Summary("Withdraws user from specified raid if signed up.")]
[Summary("Signs user up for specified raid with specified roles. Uses defualt roles if none specified.")]
[Command("rollcall")]
[Alias("rc")]
[Summary("Mentions users signed up for specified raid with a message that raid is forming.")]
[Command("closeraid")]
[Alias("clearraid", "clear", "close", "cr")]
[Summary("Deletes signups for specified raid.")]
[Command("openraid")]
[Alias("open", "or")]
[Summary("Creates text file to hold names and roles for sign ups")]
Full script of one for example of one of the 8 commands I need changed from C# to [login to view URL]
```[Command("openraid")]
[Alias("open", "or")]
[Summary("Creates text file to hold names and roles for sign ups")]
public async Task OpenRaidCmd([Summary("Name for text file / name of raid, one word only.")] string raid, [Remainder, Summary("Custom message to send to signups channel")] string message = null)
{
string fileName = raid + ".txt";
fileName = [login to view URL](fileName).Replace(fileName, "");
fileName = fileName + @"\raids\" + raid + ".txt";
if ([login to view URL] != botChannel)
{
await ReplyAsync($"Please use this command in {(await [login to view URL](botChannel) as SocketTextChannel).Mention}");
}
else if ([login to view URL](fileName))
{
await ReplyAsync($"File Name {raid}.txt already exists, use another name or clear the raid.");
}
else
{
[login to view URL](fileName).Close();
var channel = await [login to view URL](signupsID) as SocketTextChannel;
if (message == null)
{
await [login to view URL]($"Raid signups now open for {raid}!");
}
else
{
await [login to view URL](message);
}
}
}```
It has to work in Discord!