Skip to content

Commit

Permalink
Removed command addreaction
Browse files Browse the repository at this point in the history
  • Loading branch information
MythicalCuddles committed Oct 4, 2019
1 parent 0f5d556 commit fd3673f
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions DiscordBot/Modules/Owner/OwnerModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,38 +189,6 @@ await ReplyAsync("**Please confirm by entering the TwoAuth code as follows:** "
await DiscordBot.Bot.LogoutAsync();
Environment.Exit(0);
}

[Command("addreaction")]
public async Task AddReactionAsync(ulong? id = null, string emote = null)
{
if (id == null || emote == null)
{
await ReplyAsync("**Syntax:** " +
Guild.Load(Context.Guild.Id).Prefix + "addreaction [message id] [emote]");
return;
}

foreach (var g in DiscordBot.Bot.Guilds)
{
foreach (var c in g.TextChannels)
{
var msgs = c.GetMessagesAsync().GetEnumerator().Current;

foreach (var m in msgs)
{
var msg = c.GetMessageAsync(m.Id).GetAwaiter().GetResult() as SocketUserMessage;

if (msg.Id == id)
{
await msg.AddReactionAsync(new Emoji(emote));
await ReplyAsync(Context.User.Mention +
", if that message exists in my cache, I've added a reaction to it.");
return;
}
}
}
}
}

[Command("editbotchannels")]
public async Task EditBotChannelsAsync(string editing = null, [Remainder] string value = null)
Expand Down

0 comments on commit fd3673f

Please sign in to comment.