-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/root' into root
- Loading branch information
Showing
5 changed files
with
106 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...otlin/com/kotlindiscord/kord/extensions/modules/extra/mappings/arguments/BarnArguments.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
*/ | ||
|
||
package com.kotlindiscord.kord.extensions.modules.extra.mappings.arguments | ||
|
||
import com.kotlindiscord.kord.extensions.commands.converters.impl.defaultingBoolean | ||
import me.shedaniel.linkie.namespaces.BarnNamespace | ||
|
||
/** Arguments for Barn mappings lookup commands. **/ | ||
@Suppress("UndocumentedPublicProperty") | ||
class BarnArguments : MappingArguments(BarnNamespace), IntermediaryMappable { | ||
override val mapDescriptors by defaultingBoolean { | ||
name = "map-descriptor" | ||
description = "Whether to map field/method descriptors to named instead of intermediary" | ||
defaultValue = true | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...in/com/kotlindiscord/kord/extensions/modules/extra/mappings/arguments/FeatherArguments.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
*/ | ||
|
||
package com.kotlindiscord.kord.extensions.modules.extra.mappings.arguments | ||
|
||
import com.kotlindiscord.kord.extensions.commands.converters.impl.defaultingBoolean | ||
import me.shedaniel.linkie.namespaces.FeatherNamespace | ||
|
||
/** Arguments for Feather mappings lookup commands. **/ | ||
@Suppress("UndocumentedPublicProperty") | ||
class FeatherArguments : MappingArguments(FeatherNamespace), IntermediaryMappable { | ||
override val mapDescriptors by defaultingBoolean { | ||
name = "map-descriptor" | ||
description = "Whether to map field/method descriptors to named instead of Calamus" | ||
defaultValue = true | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
.../com/kotlindiscord/kord/extensions/modules/extra/mappings/arguments/SrgMojangArguments.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
*/ | ||
|
||
package com.kotlindiscord.kord.extensions.modules.extra.mappings.arguments | ||
|
||
import com.kotlindiscord.kord.extensions.commands.converters.impl.defaultingBoolean | ||
import me.shedaniel.linkie.namespaces.MojangSrgNamespace | ||
|
||
/** Arguments for SRG Mojang mappings lookup commands. **/ | ||
@Suppress("UndocumentedPublicProperty") | ||
class SrgMojangArguments : MappingArguments(MojangSrgNamespace), IntermediaryMappable { | ||
override val mapDescriptors by defaultingBoolean { | ||
name = "map-descriptor" | ||
description = "Whether to map field/method descriptors to named instead of SRG" | ||
defaultValue = true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters