From e765d6726b03b0a8b9f853555f4fe09c0e136cc1 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Sun, 10 Jan 2016 17:13:27 +0100 Subject: [PATCH] settopic command --- NadekoBot/Modules/Administration.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/NadekoBot/Modules/Administration.cs b/NadekoBot/Modules/Administration.cs index c04f2ef7..6c18e0ca 100644 --- a/NadekoBot/Modules/Administration.cs +++ b/NadekoBot/Modules/Administration.cs @@ -241,6 +241,15 @@ namespace NadekoBot.Modules } }); + cgb.CreateCommand(".st").Alias(".settopic") + .Description("Sets a topic on the current channel.") + .Parameter("topic",Discord.Commands.ParameterType.Unparsed) + .Do(async e => { + try { + await e.Channel.Edit(topic: e.GetArg("topic")); + } catch (Exception) { } + }); + cgb.CreateCommand(".uid").Alias(".userid") .Description("Shows user id") .Parameter("user",Discord.Commands.ParameterType.Required)