Commit fef80d55 authored by garantiertnicht's avatar garantiertnicht

Improve Permission Checks

Checking perms for the role and channel override was messed up at some

The bot now checks for permissions which have an effect if granted on a
channel override at the channel level and for permissions which only
make sense on the role level at the role level. For example, Embed Links
is checked for each channel; but Manage Emojis is checked at the role

Furthermore code style changed and help for iknowwhatiamdoing was added.
parent da91239a
version = "2.0.0"
maxColumn = 80
docstrings = "ScalaDoc"
continuationIndent.callSite = 2
continuationIndent.defnSite = 2
align.openParenCallSite = false
align.openParenDefnSite = false
newlines.alwaysBeforeTopLevelStatements = false
newlines.alwaysBeforeElseAfterCurlyIf = false
rewrite.rules = [RedundantBraces, RedundantParens, SortImports, SortModifiers]
rewrite.redundantBraces.stringInterpolation = true
continuationIndent.defnSite = 2
align.ifWhileOpenParen = false
verticalMultiline.newlineBeforeImplicitKW = true
binPack.literalArgumentLists = false
includeCurlyBraceInSelectChains = true
includeNoParensInSelectChains = false
danglingParentheses = true
indentOperator = spray
lineEndings = unix
optIn.configStyleArguments = false
......@@ -23,6 +23,9 @@ import net.dv8tion.jda.core.{AccountType, JDABuilder}
object Main {
def main(args: Array[String]): Unit = {
val token = args.head
new JDABuilder(AccountType.BOT).setToken(token).addEventListener(new Bot).buildAsync()
new JDABuilder(AccountType.BOT)
.addEventListener(new Bot)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment