Apply DM Disable attribute to some commands

This commit is contained in:
Runebaas 2019-03-17 18:33:18 +01:00
parent 1e98b44cb7
commit de408dbfd9
No known key found for this signature in database
GPG key ID: 2677AF508D0300D6
9 changed files with 18 additions and 0 deletions

View file

@ -5,6 +5,7 @@ using Discord;
using Discord.Commands;
using Geekbot.net.Database;
using Geekbot.net.Lib.AlmostRedis;
using Geekbot.net.Lib.CommandPreconditions;
using Geekbot.net.Lib.ErrorHandling;
using Geekbot.net.Lib.Extensions;
using Geekbot.net.Lib.Levels;
@ -28,6 +29,7 @@ namespace Geekbot.net.Commands.User
[Command("stats", RunMode = RunMode.Async)]
[Summary("Get information about this user")]
[DisableInDirectMessage]
public async Task User([Summary("@someone")] IUser user = null)
{
try