Perms added to custom reactions, actually commit

This commit is contained in:
root
2017-05-30 02:51:56 +02:00
parent 2d9fc9893b
commit 7704569c36
2 changed files with 38 additions and 35 deletions

View File

@@ -23,10 +23,12 @@ namespace NadekoBot.Modules.Gambling
[RequireContext(ContextType.Guild)]
public async Task Draw(int num = 1)
{
if (num < 1)
num = 1;
var cards = _allDecks.GetOrAdd(Context.Guild, (s) => new Cards());
var images = new List<Image>();
var cardObjects = new List<Cards.Card>();
if (num > 5) num = 5;
if (num > 10) num = 10;
for (var i = 0; i < num; i++)
{
if (cards.CardPool.Count == 0 && i != 0)